package com.atguigu.mapper;

import com.atguigu.model.system.SysUser;
import com.atguigu.vo.system.SysRoleQueryVo;
import com.atguigu.vo.system.SysUserQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    IPage<SysUser> getPageList(@Param("page") IPage<SysUser> page,  @Param("sysUserQueryVo") SysUserQueryVo sysUserQueryVo);

    void saveUser(SysUser sysUser);

    SysUser getUserById(@Param("id") Integer id);

    void updateUser(SysUser sysUser);

    void deleteUserById(Integer id);

    void updateStatus(SysUser sysUser);
}
